
// import { Message } from 'element-ui'
// import $qs from 'qs'
// import Cookies from 'js-cookie'
export default{
  bind(el, binding, vnode) {
    // const { path, isBase = true, query } = Object.assign({}, binding.value)
    // const root = isBase ? Cookies.get('BASE_API') || `${location.protocol}//${location.hostname}/` : `${location.protocol}//${location.hostname}/`
    // const open = `${root}${path}`
    // console.log(`${open}${$qs.stringify(query)}`, `${open}`)
    // console.log(root, open)
    el.addEventListener('scroll', $el => {
      // const $query = el.dataset.query
      // // console.log($query)
      // if (query && $query) {
      //   Object.assign(query, JSON.parse($query))
      // }
      // location.href = query ? `${open}${$qs.stringify(query)}` : `${open}`
      // console.log($el.target.scrollTop)
    }, false)
  }
}

